package com.tax.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tax.entity.TdGovCompanyBasic;
import com.tax.entity.TdUser;
import com.tax.mapper.TdGovCompanyBasicMapper;
import com.tax.service.TdGovCompanyBasicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TdGovCompanyBasicServiceImpl extends ServiceImpl<TdGovCompanyBasicMapper, TdGovCompanyBasic> implements TdGovCompanyBasicService {

    @Autowired
    private TdGovCompanyBasicMapper basicMapper;

    @Override
    public TdGovCompanyBasic getConpanyInfo(TdGovCompanyBasic entity) {
        QueryWrapper<TdGovCompanyBasic> wrapper = new QueryWrapper<>();
        wrapper.eq("ent_name",entity.getEntName());
        return basicMapper.selectOne(wrapper);
    }
}
